Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Node / AutumnSpark1226 / nomadForum.git / files / test / page_tests / test_rules-basic.sh

Displaying Raw • Download


test/page_tests/test_rules-basic.sh main (dac94b89) Text, 1.31 KB

T8b949e#!/bin/bash


T8b949e# nomadForum - a forum on the NomadNetwork
T8b949e# Copyright (C) 2023-2026 AutumnSpark1226
T8b949e#
T8b949e# This program is free software: you can redistribute it and/or modify
T8b949e# it under the terms of the GNU General Public License as published by
T8b949e# the Free Software Foundation, either version 3 of the License, or
T8b949e# (at your option) any later version.
T8b949e#
T8b949e# This program is distributed in the hope that it will be useful,
T8b949e# but WITHOUT ANY WARRANTY; without even the implied warranty of
T8b949e# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
T8b949e# GNU General Public License for more details.
T8b949e#
T8b949e# You should have received a copy of the GNU General Public License
T8b949e# along with this program. If not, see <https://www.gnu.org/licenses/>.

T8b949e# set filename here
Te6edf3TEST_FILENAMETff7b72=Ta5d6ff"rules.mu"
T8b949e# set custom test name
Te6edf3TEST_SUFFFIXTff7b72=Ta5d6ff"basic"

T8b949e# modify env here
Tffa657export Te6edf3link_idTff7b72=Ta5d6ff"00000000000000000000000000000000"


Te6edf3TEST_NAMETff7b72=Ta5d6ff"Te6edf3$TEST_FILENAMETa5d6ff-Te6edf3$TEST_SUFFFIXTa5d6ff"
Tffa657cd Tff7b72$(dirname Tff7b72$(Tffa657pwdTff7b72)Tff7b72)
Tffa657echo Ta5d6ff"Ta5d6ffTesting Te6edf3$TEST_NAMETa5d6ff"
Tffa657export Te6edf3DEBUGTff7b72=Ta5d6ff"true"
Te6edf3OUTPUTTff7b72=Tff7b72$(./Te6edf3$TEST_FILENAMETff7b72)
Te6edf3TEST_STATUSTff7b72=Te6edf3$?
Tff7b72if Tff7b72[ Te6edf3$TEST_STATUS !Tff7b72= Ta5d6ff"0" Tff7b72]Tb4b4b4; Tff7b72then
Tffa657echo Ta5d6ff"Ta5d6ffTest: Te6edf3$TEST_NAMETa5d6ff failed!Ta5d6ff"
Tffa657echo Ta5d6ff"This is the output. It might contain important error information."
Tffa657echo Ta5d6ff'-------------------------------'
Tffa657echo Te6edf3$OUTPUT
Tffa657echo Ta5d6ff'-------------------------------'
Tffa657exit T79c0ff1
Tff7b72fi


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────